# !/usr/bin/python3
# -*- coding:utf-8 -*-
# Copyright 2021 The Chinaunicom Software Team. All rights reserved.
# @FileName: msg_conf.py
# @Author  : Dammy
# @Time    : 2021/12/10

import warnings
warnings.filterwarnings("ignore")


config = dict(
    RETURN_STATUS=dict(
        OK='0000',
        PARAMETERS_ERROR='1000',
        URL_ERROR='2000',
        CONNTECTION_TIMEOUT='3000'
    ),
    RETURN_MSG=dict(
        OK='数据处理正确',
        PARAMETERS_ERROR='请求参数错误',
        URL_ERROR='服务降级错误',
        CONNTECTION_TIMEOUT='系统错误',
        AUTH_ERROR='authentication error',
        HANDLE_ERROR='server error',
        NULL_ERROR='data error',
        DATA_FORMAT_ERROR='数据格式不正确',
    ),
    RETURN_RSP_CODE=dict(
        OK='0000',
        PARAMETERS_ERROR='0001',
        URL_ERROR='0002',
        CONNTECTION_TIMEOUT='9999',
        AUTH_ERROR='0003',
        HANDLE_ERROR='0004',
        NULL_ERROR='0005',
        # CONNTECTION_TIMEOUT='0003',
        DATA_FORMAT_ERROR='0006',
    ),
    RETURN_RSP_DESC=dict(
        OK='业务处理正常',
        PARAMETERS_ERROR='业务参数错误',
        URL_ERROR='业务请求异常',
        CONNTECTION_TIMEOUT='查询无数据',
        AUTH_ERROR='authentication error',
        HANDLE_ERROR='server error',
        NULL_ERROR='data error',
        # CONNTECTION_TIMEOUT='返回超时',
        DATA_FORMAT_ERROR='数据格式不正确',
    )
)
